package org.alvin.cloud.center.system;

import com.google.common.collect.Lists;
import org.alvin.cloud.center.system.clients.ITestDataClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/code")
public class GenCodeController {
    @Autowired
    private ITestDataClient testDataClient;

    @GetMapping("list")
    public List<String> getList(){
        return this.testDataClient.getList();
    }
}
